<template>
	<span
		class="app-caption-bar"
		:title="titlePSLanguageRes ? $t(titlePSLanguageRes) : title"
		>{{ capPSLanguageRes ? $t(capPSLanguageRes, caption) : caption }}</span
	>
	<span class="app-caption-bar__sub" v-if="subCapPSLanguageRes || subCaption">
		- {{ subCapPSLanguageRes ? $t(subCapPSLanguageRes) : subCaption }}</span
	>
</template>

<script setup lang="ts">
import { CaptionBarProps } from './caption-bar';
const props = defineProps(CaptionBarProps);
</script>
